__author__ = 'l4537'
#!/usr/bin/env python
# -*- coding:utf-8 -*-
#coding:utf-8
import os,sys
import django
from pathlib import Path

# 根据根目录需求，添加parent，第一层加2个，依次添加
BASE_DIR = Path(__file__).resolve().parent.parent
sys.path.append(str(BASE_DIR))
os.environ['DJANGO_SETTINGS_MODULE']='application.settings'
django.setup()



# d = DataSource(
#     '127.0.0.1',3306,'root','roo2t','lowcodepython'
# )
# a = d.connect()


mysqlManager.add_data_source(1,'127.0.0.1',3306,'root','root','lowcodepython')
print(2)
stat = mysqlManager.get_data_source(1)
print(stat)

